<?php
namespace app\admin\model;

use think\Model;
use think\Db;
use traits\model\SoftDelete;

class NoticeModel extends BaseModel
{   
	// 设置当前模型对应的完整数据表名称
    protected $table = 'notice';
    protected $pk = 'id';
    protected $append=[];  //追加字段
    public function getAddtimeAttr($value)
    {
        return date('Y-m-d H:i:s',$value);
    }
    
}
